| Fully Qualified Name: | Zend\Hydrator\Strategy\SerializableStrategy |
| Implements: | StrategyInterface |
| Name | Description | Defined By |
|---|---|---|
| __construct() | SerializableStrategy | |
| extract() | Serialize the given value so that it can be extracted by the hydrator. | SerializableStrategy |
| getSerializer() | Get serializer | SerializableStrategy |
| getSerializerOptions() | Get configuration options for instantiating a serializer adapter | SerializableStrategy |
| hydrate() | Unserialize the given value so that it can be hydrated by the hydrator. | SerializableStrategy |
| setSerializer() | Set serializer | SerializableStrategy |
| setSerializerOptions() | Set configuration options for instantiating a serializer adapter | SerializableStrategy |
| Parameter Name | Type | Description |
|---|---|---|
| $serializer | mixed | string |
| $serializerOptions | mixed |
Returns:
Serialize the given value so that it can be extracted by the hydrator.
| Parameter Name | Type | Description |
|---|---|---|
| $value | mixed | The |
Returns: mixed Returns the value that should be extracted.
Get serializer
Returns: \SerializerAdapter
Get configuration options for instantiating a serializer adapter
Returns: mixed
Unserialize the given value so that it can be hydrated by the hydrator.
| Parameter Name | Type | Description |
|---|---|---|
| $value | mixed | The |
Returns: mixed Returns the value that should be hydrated.
Set serializer
| Parameter Name | Type | Description |
|---|---|---|
| $serializer | string|\SerializerAdapter |
Returns: \SerializableStrategy
Set configuration options for instantiating a serializer adapter
| Parameter Name | Type | Description |
|---|---|---|
| $serializerOptions | mixed |
Returns: \SerializableStrategy